package com.jiayang.hhotel.ui;

import android.os.Bundle;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.jiayang.hhotel.R;

import cn.droidlover.xdroidmvp.mvp.XActivity;

/**
 * Created by Administrator on 2017/5/24 0024.
 * 订餐详情页面
 */

public class BookDinnerSearchDetailsActivity extends XActivity {

    private TextView orderId,//订单号
                        normal,//标准
                        name,//名称
                        agreeGuest,//协议客户
                        contactName,//联系人姓名
                        contactTel;//联系人电话

    private LinearLayout addBookDinnerInfo;//新增订餐信息容器

    @Override
    public void initData(Bundle savedInstanceState) {
        initTitle(this,true,getString(R.string.book_dinner_details),R.color.orange_color,null,null);

        orderId= (TextView) findViewById(R.id.tv_order_id);
        normal= (TextView) findViewById(R.id.tv_normal);
        name= (TextView) findViewById(R.id.tv_name);
        agreeGuest= (TextView) findViewById(R.id.tv_agree_guest);
        contactName= (TextView) findViewById(R.id.tv_contact_name);
        contactTel= (TextView) findViewById(R.id.tv_contact_tel);

        addBookDinnerInfo= (LinearLayout) findViewById(R.id.add_book_dinner_info);
    }

    @Override
    public int getLayoutId() {
        return R.layout.layout_book_dinner_search_details;
    }

    @Override
    public Object newP() {
        return null;
    }

    /**
     * 添加订餐信息列表项
     */
    private void setAddBookDinnerInfoItem(){
        TextView itemView=new TextView(this);
        itemView.setTextColor(getResources().getColor(R.color.white));
        itemView.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
        itemView.setPadding(45,30,0,0);
        itemView.setText("测试");
        addBookDinnerInfo.addView(itemView);
    }
}
